
#include <TVout.h>
#include <fontALL.h>
#include "sfdblogo.h"

TVout TV;

void setup() {
  TV.begin(PAL,120,96);
 
  //Presentation
  TV.select_font(font6x8);
  TV.set_cursor(45,40);
  TV.println("Zulio\n");
  TV.delay(2000);
  TV.set_cursor(35,50);
  TV.println("presents\n");
  TV.delay(1500);
  TV.clear_screen();
  TV.bitmap(20,30,SFDBLogo);
  TV.delay(2000);
  TV.select_font(font8x8);
  TV.set_cursor(23,60);
  TV.println("SCOREBOARD\n");
  TV.delay(10000);
  TV.clear_screen();
 
  //fonts
  TV.clear_screen();
  TV.println(0,0,"Multiple fonts:");
  TV.select_font(font4x6);
  TV.println("4x6 font FONT");
  TV.select_font(font6x8);
  TV.println("6x8 font FONT");
  TV.select_font(font8x8);
  TV.println("8x8 font FONT");
  TV.select_font(font6x8);
  TV.delay(2000);
  
  TV.clear_screen();
  TV.print(9,44,"Draw Basic Shapes");
  TV.delay(2000);
  
  //circles
  TV.clear_screen();
  TV.draw_circle(TV.hres()/2,TV.vres()/2,TV.vres()/3,WHITE);
  TV.delay(500);
  TV.draw_circle(TV.hres()/2,TV.vres()/2,TV.vres()/2,WHITE,INVERT);
  TV.delay(2000);
  
  //rectangles and lines
  TV.clear_screen();
  TV.draw_rect(20,20,80,56,WHITE);
  TV.delay(500);
  TV.draw_rect(10,10,100,76,WHITE,INVERT);
  TV.delay(500);
  TV.draw_line(60,20,60,76,INVERT);
  TV.draw_line(20,48,100,48,INVERT);
  TV.delay(500);
  TV.draw_line(10,10,110,86,INVERT);
  TV.draw_line(10,86,110,10,INVERT);
  TV.delay(2000);
  
  
  
}

void loop() 
{

}


